package Factory;

import Car.Car.Car;
import Car_species.Hc;
import org.junit.Test;
//E:\java\PrivateProject\Car_Projrct\src\Car_species\Hc.java
public class FactoryBuilder {
    public static Car create(String name){
        Car car = null;
        try {
            Class clazz = Class.forName("Car_species."+name);
             car = (Car)clazz.newInstance();
        }catch (Exception e) {
            e.printStackTrace();
        }
        return car;
    }
}
